package StudyCode.summary.mydatetime;

import java.time.LocalDate;
import java.time.chrono.MinguoDate;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class MinguoISOConvert {
	public static void main(String[] args) {
		MinguoDate minguoDate = MinguoDate.now();
		LocalDate isoNow = LocalDate.now();
		System.out.println("民国当前日期是: " + minguoDate);
		System.out.println("国际标准日期是: " + isoNow);

		MinguoDate minguoDate1 = MinguoDate.from(isoNow);
		LocalDate isoNow2 = LocalDate.from(minguoDate);
		System.out.println("国际标准日期转为民国日期: " + minguoDate1);
		System.out.println("民国日期转为国际标准日期: " + isoNow2);
	}
}
